#include <stdint.h>
#include <stdio.h>

void bufoverflow_attack(const char *attackBuf);
int g_attack = 1;
int main(int argc, char *argv[])
{
    if (argc != 2) {
        printf("only one param.\n");
        return -1;
    }

    if (g_attack != 0) {
        printf("bufoverflow_attack start.\n");
        bufoverflow_attack(argv[1]);
        printf("bufoverflow_attack failed.\n");
    } else {
        printf("bufoverflow_attack success.\n");
    }
    
    return 0;
}
